From 139b645aa23045463c3b0919f47be03a330c87f9 Mon Sep 17 00:00:00 2001 From: Kelebek1 Date: Tue, 14 Feb 2023 18:55:46 +0000 Subject: Allow >1 cpu threads on video decoding, disable multi-frame decoding --- src/video_core/host1x/codecs/codec.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video_core/host1x/codecs/codec.cpp b/src/video_core/host1x/codecs/codec.cpp index 42e7d6e4f..3e9022dce 100644 --- a/src/video_core/host1x/codecs/codec.cpp +++ b/src/video_core/host1x/codecs/codec.cpp @@ -152,6 +152,8 @@ bool Codec::CreateGpuAvDevice() { void Codec::InitializeAvCodecContext() { av_codec_ctx = avcodec_alloc_context3(av_codec); av_opt_set(av_codec_ctx->priv_data, "tune", "zerolatency", 0); + av_codec_ctx->thread_count = 0; + av_codec_ctx->thread_type &= ~FF_THREAD_FRAME; } void Codec::InitializeGpuDecoder() { -- cgit v1.2.3